// import request from '@/utils/request'
// import request from '@/app/appcommon/utils/request-spring'
import request from '@/app/appcommon/utils/request-spring-token'

// 查询个人持仓记录列表
export function listTransactions_fund(query) {
  return request({
    url: '/transactions_fund/list',
    method: 'get',
    params: query
  })
}

// 查询个人持仓记录详细
export function getTransactions_fund(transactionId) {
  return request({
    url: '/transactions_fund/' + transactionId,
    method: 'get'
  })
}

// 新增个人持仓记录
export function addTransactions_fund(data) {
  return request({
    url: '/transactions_fund',
    method: 'post',
    data: data
  })
}

// 修改个人持仓记录
export function updateTransactions_fund(data) {
  return request({
    url: '/transactions_fund',
    method: 'put',
    data: data
  })
}

// 删除个人持仓记录
export function delTransactions_fund(transactionId) {
  return request({
    url: '/transactions_fund/' + transactionId,
    method: 'delete'
  })
}
